package com.yjht.online;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.StrUtil;
import com.yjht.online.arg.ArgParam;
import com.yjht.online.arg.excption.ArgError;
import com.yjht.online.arg.reslove.ResloveBootstrap;
import com.yjht.online.generate.ConfigBootstrap;
import com.yjht.online.generate.GenerateBootstrap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;




public class Bootstrap {

    final static Logger logger = LoggerFactory.getLogger(Bootstrap.class);

    public static void main(String[] args) {

        ArgParam argParam;
        try {
            argParam = ResloveBootstrap.reslove(args);
        } catch (ArgError argError) {
            logger.error(argError.getMessage());
            return;
        }
        //配置相关
        ConfigBootstrap.config(argParam);
        //生成
        GenerateBootstrap.generate(argParam);
    }



}
